import request from '@/utils/request'
const prefix = 'message-service/'
// 消息通知api

// 消息通知-列表
export function listMcMessage(data) {
  return request({
    url: prefix + 'mcMessage/listMcMessage',
    method: 'post',
    data
  })
}
// 消息通知-创建
export function createMcMessage(data) {
  return request({
    url: prefix + 'mcMessage/createMcMessage',
    method: 'post',
    data
  })
}

// 消息通知-更新
export function updateMcMessage(data) {
  return request({
    url: prefix + 'mcMessage/updateMcMessage',
    method: 'put',
    data
  })
}
// 消息通知-更新
export function publicMcMessage(id) {
  return request({
    url: prefix + 'mcMessage/publicMcMessage/' + id,
    method: 'put'
  })
}
// 消息通知- 详情
export function getDetailMcMessage(id) {
  return request({
    url: prefix + 'mcMessage/getDetailMcMessage/' + id,
    method: 'get'
  })
}
// 消息通知-删除
export function disableBidding(id) {
  return request({
    url: prefix + 'mcMessage/disableMcMessage/' + id,
    method: 'delete'
  })
}


// 收藏 - 创建
export function createAnncBk(data) {
  return request({
    url: prefix + 'dmAnncBookmark/createAnncBk',
    method: 'post',
    data
  })
}
// 收藏 - 删除
export function disableAnncBk(id) {
  return request({
    url: prefix + 'dmAnncBookmark/disableAnncBk/' + id,
    method: 'delete'
  })
}
// 收藏 - 详情
export function getDetailAnncBk(id) {
  return request({
    url: prefix + 'dmAnncBookmark/getDetailAnncBk/' + id,
    method: 'get'
  })
}
// 收藏 - 列表
export function listAnncBk(data) {
  return request({
    url: prefix + 'dmAnncBookmark/listAnncBk',
    method: 'post',
    data
  })
}// 收藏 - 创建
export function updateAnncBk(data) {
  return request({
    url: prefix + 'dmAnncBookmark/updateAnncBk',
    method: 'put',
    data
  })
}

// 审核-创建
export function createAudit(data) {
  return request({
    url: prefix + 'dmAudit/createAudit',
    method: 'post',
    data
  })
}
// 审核-修改文件
export function updateAudits(data) {
  return request({
    url: prefix + 'dmAudit/updateAudits',
    method: 'put',
    data
  })
}
// 审核-批量创建
export function createAudits(biddingStatus, data) {
  return request({
    url: prefix + 'dmAudit/createAudits/' + biddingStatus,
    method: 'post',
    data
  })
}
// 审核-批量创建(改)
export function submitAudits(bid, biddingStatus, data) {
  return request({
    url: prefix + 'dmAudit/submitAudits/' + bid + '/' + biddingStatus,
    method: 'post',
    data
  })
}
// 审核-传递签名后的URL文件（根据ID进行更新）
export function signAudits(data) {
  return request({
    url: prefix + 'dmAudit/signAudits',
    method: 'post',
    data
  })
}
// 审核-删除
export function disableAudit(id) {
  return request({
    url: prefix + 'dmAudit/disableAudit/' + id,
    method: 'delete'
  })
}
// 审核- 详情
export function getDetailAudit(id) {
  return request({
    url: prefix + 'dmAudit/getDetailAudit/' + id,
    method: 'get'
  })
}
// 审核 - 列表
export function listAudit(data) {
  return request({
    url: prefix + 'dmAudit/listAudit',
    method: 'post',
    data
  })
}
// 审核 - 更新
export function updateAudit(data) {
  return request({
    url: prefix + 'dmAudit/updateAudit',
    method: 'put',
    data
  })
}
